body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 100px;
    min-height: 100vh;
    padding-top: 200px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.merit-counter {
    font-size: 24px;
    margin-bottom: 160px;
    font-weight: bold;
    color: #333;
}

.woodfish-container {
    position: relative;
    cursor: pointer;
}

.woodfish {
    width: 200px;
    height: auto;
}

.hammer {
    position: absolute;
    width: 100px;
    height: auto;
    top: -120px;
    right: -40px;
    transform: rotate(-45deg);
    transform-origin: bottom right;
    display: none;
}

.hammer.active {
    display: block;
    animation: hammerHit 0.3s ease-in-out;
}

@keyframes hammerHit {
    0% { transform: rotate(-45deg); }
    50% { transform: rotate(-15deg); }
    100% { transform: rotate(-45deg); }
}

.floating-merit {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1s ease-out;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

.floating-merit.negative {
    color: #ff5252;  /* 红色 */
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 225px;
}

.button-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.temptation-btn {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.temptation-btn:hover {
    background-color: #ff5252;
}

.image-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
}

.random-image {
    width: 450px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    display: block;
    cursor: pointer;
}

.random-image:hover {
    transform: scale(1.02);
}

.random-image.show {
    opacity: 1;
}

.random-image:active {
    transform: scale(0.98);
}

.button-text {
    font-size: 14px;
    color: #ff5252;  /* 红色警告文字 */
    font-weight: bold;
    text-align: center;
    /* 可选：添加文字特效 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 可选：添加文字悬停效果 */
.button-container:hover .button-text {
    color: #ff3333;
    transform: scale(1.05);
}

.image-popup::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    z-index: -1;
}

/* 图片容器样式 */
.image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 心形容器样式 */
.heart-container {
    position: relative;
    margin-top: 10px;
}

/* 心形按钮样式 */
.heart {
    font-size: 24px;
    color: #ff4081;
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
}

.heart:hover {
    transform: scale(1.2);
}

.heart:active {
    transform: scale(0.9);
}

/* 通知样式 */
.notification {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff4081;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* 通知箭头 */
.notification::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent #ff4081 transparent transparent;
}

/* 显示通知的类 */
.notification.show {
    opacity: 1;
}

/* 弹出消息的容器 */
.doom-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: fadeIn 0.5s ease-out, pulse 2s infinite;
}

/* 文字样式 */
.doom-text {
    color: #ff0000;
    font-size: 60px;
    font-weight: bold;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000;
    animation: scaleIn 0.5s ease-out, shake 0.5s ease-in-out 0.5s, glow 1s ease-in-out infinite alternate;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 缩放动画 */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000;
    }
    to {
        text-shadow: 
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff0000;
    }
}

@keyframes pulse {
    0% {
        background-color: rgba(0, 0, 0, 0.8);
    }
    50% {
        background-color: rgba(255, 0, 0, 0.3);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.8);
    }
} 